<?php
/**
 * Created by PhpStorm.
 * User: jhon
 * Date: 2018/2/8
 * Time: 14:38
 */
namespace app\admin\controller;
use think\Controller;
class Auto extends Controller{

    public $emsconfig = [
        'usergradeconfig'=>[
            '1'=>'超级管理员',
            '2'=>'代理商',
            '3'=>'健身房',
            '4'=>'教练',
        ],
        'orggradeconfig'=>[
            '1'=>'厂商',
            '2'=>'代理商',
            '3'=>'健身房',
        ],
        'padgradeconfig'=>[
            ['xb'=>'1','val'=>'1对1'],
            ['xb'=>'6','val'=>'1对6'],
        ]

    ];

    public function _initialize()
    {
        if(session('user')){

        }else{
            $this->redirect('Publics/login',['message' => '']);
        }
        $this->assign('emsconfig',$this->emsconfig);

//        parent::_initialize(); // TODO: Change the autogenerated stub
    }

}